var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function (req, res, next) {
  res.send('respond with a resource');
});

router.get('/info', (req, res) => {

  res.render('user', { users: [{ name: 'user1', age: 20 }, { name: "user2", age: 25 }] })

})

module.exports = router;
